package com.alvin.myspringcloudzuul;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableFeignClients
public class FeignControllor {

    @Autowired
    private FeignMainProjectService feignMainProjectService;

    @GetMapping("/zuulFeign")
    public String feignRequest(){
        return feignMainProjectService.hello();
    }
}
